﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace VS2048
{
    public struct CellStyle
    {
        public Color TextColor;
        public Color BackColor;

        public Font TextFont;
    }

    public class CellStyleDictionary : Dictionary<int, CellStyle>
    {
        Font _txtfont = new Font("Candara", 16, FontStyle.Bold);
        CellColorDictionary _cellColors = new CellColorDictionary();
        public CellStyleDictionary()
        {
            int factor = 2;
            CellStyle cs;

            for (int i = 0; i < 11; i++)
            {
                cs = new CellStyle();
                cs.TextColor = Color.Snow;
                cs.BackColor = _cellColors[factor];
                cs.TextFont = _txtfont;

                if ((i == 0) || (i == 1))
                    cs.TextColor = Color.DodgerBlue;
                this.Add(factor, cs);

                factor *= 2;
            }
        }
    }
}
